package com.jwthhealth_pub.old.physicalfitness.view;

import android.app.Activity;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.jwthhealth_pub.R;
import com.jwthhealth_pub.common.view.TitleLayout;
import com.jwthhealth_pub.old.signutil.model.db.UserInfoDao;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by Administrator on 2017/1/14.
 */
public class ChoiceAddressActivity extends Activity {

    @BindView(R.id.consignee)
    TextView consignee;
    @BindView(R.id.consignee_layout)
    RelativeLayout consigneeLayout;
    @BindView(R.id.consignee_phone)
    TextView consigneePhone;
    @BindView(R.id.phone_layout)
    RelativeLayout phoneLayout;
    @BindView(R.id.consignee_address)
    TextView consigneeAddress;
    @BindView(R.id.address_layout)
    RelativeLayout addressLayout;
    @BindView(R.id.consignee_detail_address)
    TextView consigneeDetailAddress;
    @BindView(R.id.ed_detail_address)
    EditText edDetailAddress;
    @BindView(R.id.detail_address_layout)
    RelativeLayout detailAddressLayout;
    @BindView(R.id.sign_topbar)
    TitleLayout signTopbar;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_choice_address);
        ButterKnife.bind(this);

        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
            getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
        }

        initTop();
    }

    private void initTop() {
        signTopbar.setOnTitleLayoutListener(new TitleLayout.TitleLayoutListener() {
            @Override
            public void leftclick() {
                finish();
            }

            @Override
            public void leftTextClick() {

            }

            @Override
            public void rightclick() {

            }

            @Override
            public void rightTextClick() {

            }
        });
    }

    @OnClick(R.id.address_layout)
    public void onClick() {
        startActivity(new Intent(this, IndividualChoiceStateActivity.class));
    }

    @Override
    protected void onRestart() {
        super.onRestart();
        UserInfoDao instance = UserInfoDao.getInstance();
    }

}
